// 话题列表
export const socialTopicList = (data) =>
  uni.http({
    url: '/blapp/v1/social_topic/list',
    method: 'get',
    data,
    requestType: 'social',
  })
// 话题点赞
export const socialTopicGood = (data) =>
  uni.http({
    url: '/blapp/v1/social_topic/good',
    method: 'post',
    data,
    requestType: 'social',
  })
// 话题收藏
export const socialTopicCollect = (data) =>
  uni.http({
    url: '/blapp/v1/social_topic/collect',
    method: 'get',
    data,
    requestType: 'social',
  })
// 话题评论
export const socialCommentPublish = (data) =>
  uni.http({
    url: '/blapp/v1/social_comment/publish',
    method: 'post',
    data,
    requestType: 'social',
  })
// 话题标签
export const socialLabelList = (data) =>
  uni.http({
    url: '/doctorapp/v1/tc',
    method: 'get',
    data,
    requestType: 'app',
  })

// 关注用户
export const getCreateUser = (data) =>
  uni.http({
    url: 'blapp/v1/user/follow',
    method: 'get',
    data,
    requestType: 'app',
  })
// 话题详情
export const socialTopicDetail = (data) =>
  uni.http({
    url: '/blapp/v1/social_topic/detail',
    method: 'get',
    data,
    requestType: 'social',
  })
// 话题评论列表
export const socialCommentList = (data) =>
  uni.http({
    url: '/blapp/v1/social_comment/list',
    method: 'get',
    data,
    requestType: 'social',
  })
// 话题删除
export const socialTopicDelete = (data) =>
  uni.http({
    url: '/blapp/v1/del_topic',
    method: 'get',
    data,
    requestType: 'social',
  })
// 话题评论点赞
export const socialCommentGood = (data) =>
  uni.http({
    url: '/blapp/v1/social_comment/good',
    method: 'get',
    data,
    requestType: 'social',
  })
// 群聊列表
export const groupChatList = (data) =>
  uni.http({
    url: 'blapp/v1/group_chat/list',
    method: 'get',
    data,
    requestType: 'social',
  })
// 退出群聊
export const groupChatExitChat = (data) =>
  uni.http({
    url: '/blapp/v1/group_chat/exit_chat',
    method: 'get',
    data,
    requestType: 'social',
  })
// 加入群聊
export const groupChatJoinChat = (data) =>
  uni.http({
    url: '/blapp/v1/group_chat/join_chat',
    method: 'get',
    data,
    requestType: 'social',
  })
// 管理员操作
export const groupChatOperate = (data) =>
  uni.http({
    url: '/blapp/v1/group_chat/operate',
    method: 'get',
    data,
    requestType: 'social',
  })
// 群操作验证
export const imGetSig = (data) =>
  uni.http({
    url: '/api/im/get_sig',
    method: 'get',
    data,
    requestType: 'skill',
  })
// 群聊详情
export const groupChatInfo = (data) =>
  uni.http({
    url: '/blapp/v1/group_chat/info',
    method: 'get',
    data,
    requestType: 'social',
  })
// 是否为管理员
export const groupChatAdmin = (data) =>
  uni.http({
    url: '/blapp/v1/group_chat/admin',
    method: 'get',
    data,
    requestType: 'social',
  })

// 热门精选
export const hotListApi = (data) =>
  uni.http({
    url: '/blapp/v1/ps',
    method: 'get',
    data,
    requestType: 'app',
  })
// 发布动态
export const socialTopicPublish = (data) =>
  uni.http({
    url: '/doctorapp/v1/st',
    method: 'post',
    data,
    requestType: 'app',
  })
// /doctorapp/v1/article_operate
// 点赞、收藏、删除、编辑、私密
// 1=点赞2=收藏3=删除4=编辑修改5=私密不私密
export const articleOperateApi = (data) =>
  uni.http({
    url: '/doctorapp/v1/article_operate',
    method: 'post',
    data,
    requestType: 'app',
  })
// 内容管理

export const articleLstApi = (data) =>
  uni.http({
    url: '/blapp/v1/article_lst',
    method: 'get',
    data,
    requestType: 'app',
  })
// 文章详情

export const coupeDetailsApi = (data) =>
  uni.http({
    url: '/doctorapp/v1/ai',
    method: 'get',
    data,
    requestType: 'app',
  })
// 评论列表

export const coupeCommentsApi = (data) =>
  uni.http({
    url: '/doctorapp/v1/ac',
    method: 'get',
    data,
    requestType: 'app',
  })
// 发布科普

export const coupePostApi = (data) =>
  uni.http({
    url: '/doctorapp/v1/sps',
    method: 'post',
    data,
    requestType: 'app',
  })
// 赞过的科普
export const getZanCoupeApi = (data) =>
  uni.http({
    url: '/doctorapp/v1/pc_zan',
    method: 'get',
    data,
    requestType: 'app',
  })
// 草稿箱
export const CoupeDraftsApi = (data) =>
  uni.http({
    url: '/doctorapp/v1/drafts',
    method: 'get',
    data,
    requestType: 'app',
  })
// 保存草稿箱
export const CoupeDraftsAddApi = (data) =>
  uni.http({
    url: '/doctorapp/v1/drafts_add',
    method: 'post',
    data,
    requestType: 'app',
  })
// 删除草稿箱
export const CoupeDraftsDelApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/drafts_del',
    method: 'get',
    data,
    requestType: 'app',
  })
  // 编辑草稿箱
  export const CoupeDraftsEditApi = (data) =>
    uni.http({
      url: 'doctorapp/v1/drafts_edit',
      method: 'post',
      data,
      requestType: 'app',
    })

  // 草稿箱详情
  export const CoupeDraftsDetailApi = (data) =>
    uni.http({
      url: 'doctorapp/v1/drafts_details',
      method: 'get',
      data,
      requestType: 'app',
    })
// 关注
export const followUserApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/fu',
    method: 'get',
    data,
    requestType: 'app',
  })
// 科普发布评论
export const articleCommentAddApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/kp_article_comment_release',
    method: 'post',
    data,
    requestType: 'app',
  })
  // 帖子评论
export const trendCommentAddApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/trend_comment_release',
    method: 'post',
    data,
    requestType: 'app',
  })
//科普评论点赞

export const articleCommentLikeApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/kp_article_comment_like',
    method: 'post',
    data,
    requestType: 'app',
  })
//科普评论删除

export const articleCommentDelApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/kp_article_comment_del',
    method: 'post',
    data,
    requestType: 'app',
  })
//帖子评论点赞

export const trendCommentLikeApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/trend_comment_like',
    method: 'post',
    data,
    requestType: 'app',
  })

//帖子评论删除

export const trendCommentDelApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/trend_comment_del',
    method: 'post',
    data,
    requestType: 'app',
  })
// 科普分类
export const kepuCateApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/psc',
    method: 'get',
    data,
    requestType: 'app',
  })
// 不敢兴趣
export const notInterestedApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/nf',
    method: 'get',
    data,
    requestType: 'app',
  })
// 举报
export const reportApi = (data) =>
  uni.http({
    url: 'doctorapp/v1/ar',
    method: 'post',
    data,
    requestType: 'app',
  })
// 屏蔽词列表
export const maskWordList = (data) =>
  uni.http({
    url: 'sq/LiveRoom/maskWordList',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 屏蔽词添加
export const maskWordAddApi = (data) =>
  uni.http({
    url: 'sq/LiveRoom/maskWordAdd',
    method: 'post',
    data,
    requestType: 'bl',
  })
// 屏蔽词删除
export const maskWordDeldApi = (data) =>
  uni.http({
    url: 'sq/LiveRoom/maskWordDel',
    method: 'post',
    data,
    requestType: 'bl',
  })



// 点赞、收藏、删除、编辑、私密
export const ssvApi = (data) =>
  uni.http({
    url: '/blapp/v1/ssv',
    method: 'get',
    data,
    requestType: 'app',
  })

// 生成视频封面
export const createVieoThumbApi = (data) =>
  uni.http({
    url: 'api/media/video_img',
    method: 'post',
    data,
    requestType: 'bl',
  })
// 短视频列表
export const svLstApi = (data) =>
  uni.http({
    url: 'blapp/v1/sv_lst',
    method: 'get',
    data,
    requestType: 'app',
  })
// 直播回放列表
export const lrpvlApi = (data) =>
  uni.http({
    url: 'blapp/v1/lrpvl',
    method: 'get',
    data,
    requestType: 'app',
  })
// 直播详情
export const liveDetailApi = (data) =>
  uni.http({
    url: 'blapp/v1/live_detail',
    method: 'get',
    data,
    requestType: 'app',
  })
// 短视频浏览量增加
export const shortVideoViewNumberApi = (data) =>
  uni.http({
    url: 'api/trends/short_video_view_number',
    method: 'get',
    data,
    requestType: 'bl',
  })
// s视频详情
export const shortVideoInfoApi = (data) =>
  uni.http({
    url: 'api/trends/short_video_info',
    method: 'get',
    data,
    requestType: 'bl',
  })

export const svOperateApi = (data) =>
  uni.http({
    url: 'blapp/v1/sv_operate',
    method: 'get',
    data,
    requestType: 'app',
  })

// 创建直播间
export const createRoomApi = (data) =>
  uni.http({
    url: 'api/LiveIncome/start_live',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 检测用户是否正在直播
export const checkLivingApi = (data) =>
  uni.http({
    url: 'api/LiveIncome/is_living',
    method: 'get',
    data,
    requestType: 'bl',
  })
export const offLivingDataApi = (data) =>
  uni.http({
    url: 'api/LiveIncome/off_live_show_data',
    method: 'get',
    data,
    requestType: 'bl',
  })
// 检测用户是否关注主播
export const isFollowAnchorApi = (data) =>
  uni.http({
    url: 'api/LiveIncome/is_follow_anchor',
    method: 'get',
    data,
    requestType: 'bl',
  })
export const updataLiveDataApi = (data) =>
  uni.http({
    url: 'api/LiveIncome/close_live_show_data',
    method: 'get',
    data,
    requestType: 'bl',
  })

export const liveRoomInfo = (data) =>
  uni.http({
    url: 'api/trends/live_room_info',
    method: 'get',
    data,
    requestType: 'bl',
  })

// 获取所有礼物列表
export function getGiftList(data) {
  return uni.http({
    url: 'sq/live_gift/pageList',
    requestType: 'bl',
    data,
  })
}

//  发送礼物

export function sendGifts(data) {
  return uni.http({
    url: 'api/LiveIncome/live_give_gift',
    requestType: 'bl',
    data,
  })
}

export function closeLiveRoomAPI(data) {
  return uni.http({
    url: 'api/LiveIncome/close_live_room',
    requestType: 'bl',
    data,
  })
}
// 用户进入直播间
export function userJoinLiveRoomAPI(data) {
  return uni.http({
    url: 'api/LiveIncome/user_join_live_room',
    requestType: 'bl',
    data,
  })
}
// 获取直播回放列表
export function getHistoryLiveApi(data){
 return uni.http({
    url: 'blapp/v1/lrpb',
    method: 'get',
    data,
  })
}
// 文字审核
export const examineText = (data) => {
  return uni.http({
    url: 'https://weapp.miyingbl.com/api/common/examine_text_to_tx',
    method: 'GET',
    data,
  })
}
//我的钱包列表
export const getWalletListApi = (data) =>
  uni.http({
    url: 'api/wallet/walletList',
    method: 'get',
    data,
    requestType: 'bl',
  })
